function echo(arg) {
    return arg;
}
var result = echo('wangyang');
function swap(tuple) {
    return [tuple[1], tuple[0]];
}
var result1 = swap(['string', 123]);
console.log(result1[0]);
function echoWithArr(arg) {
    console.log(arg.length);
    return arg;
}
var arrs = echoWithArr([1, 2, 3]);
function echoWithLength(arg) {
    console.log(arg.length);
    return arg;
}
var str1 = echoWithLength('str');
var obj = echoWithLength({ length: 10, "with": 10 });
var arr1 = echoWithLength([1, 3, 4]);
var Queue = /** @class */ (function () {
    function Queue() {
        this.data = [];
    }
    Queue.prototype.push = function (item) {
        return this.data.push(item);
    };
    Queue.prototype.pop = function () {
        return this.data.shift();
    };
    return Queue;
}());
var queue = new Queue();
queue.push(1);
console.log(queue.pop().toFixed());
